import request from '@/utils/request'

// 水资源监督考核方案 选项
const redLineAssessmentFunc = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentFN',
    method: 'post',
    data: params
  })
}

// 获取表头
const tableHeaderField = function (examProCd) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentBT',
    method: 'post',
    data: { examProCd }
  })
}

// 用水总量列表
const waterTotalList = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentYSList',
    method: 'post',
    data: params
  })
}

// 用水效率（万元工业）列表
const waterEfficiencyGYList = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentGYList',
    method: 'post',
    data: params
  })
}

// 用水效率（农田灌溉水）列表
const waterEfficiencyNTList = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentNTList',
    method: 'post',
    data: params
  })
}

// 水功能区水质达标率控制指标列表
const waterFuncAreaList = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessmentList',
    method: 'post',
    data: params
  })
}

// 水资源计算分区 选项
const waterResourcesPartitionOption = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/getRedLineAssessment',
    method: 'post',
    data: params
  })
}

// 考核指标维护 （新增）
const addIndicarors = function (params = {}) {
  return request({
    url: '/zy-api/api/redLineAssessment/addRedLineAssessment',
    method: 'post',
    data: params
  })
}

export {
  redLineAssessmentFunc,
  tableHeaderField,
  waterTotalList,
  waterEfficiencyGYList,
  waterEfficiencyNTList,
  waterFuncAreaList,
  waterResourcesPartitionOption,
  addIndicarors
}